package com.czy.booktest02.demos.constant;

import lombok.Getter;

@Getter
public enum ResultStatus {

    HTTPSERVER_SUCCESS(200, "响应成功！"),

    HTTPSERVER_ERROR(222, "操作失误！"),

    HTTPSERVER_PARAM_ILLEGAL(311, "非法参数！"),

    HTTPSERVER_USR_MISSING_AUTHORITY(318, "用户权限不足！"),

    HTTPSERVER_USR_ILLEGAL(316, "用户非法闯入"),

    HTTPSERVER_USR_ALREADY_EXIST(322, "用户已存在！"),

    HTTPSERVER_INFO_EXISTING(415, "信息已被占用！请重新查看！"),

    HTTPSERVER_SYSTEM_EXCEPTION(577, "系统异常！"),

    HTTPSERVER_SYSTEM_BUSY(566, "系统繁忙！");

    private Integer code;

    private String msg;

    ResultStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
